Fix PV CPUID virtualization of XSave
authorShan Haitao <haitao.shan@intel.com>
Sat, 17 Sep 2011 23:01:58 +0000 (00:01 +0100)
committerShan Haitao <haitao.shan@intel.com>
Sat, 17 Sep 2011 23:01:58 +0000 (00:01 +0100)
commit60bb1d8cd45c041117a65374478e8da7d8e23f60
treebd95e7181c881176d4ae570b866292db7cdf652f
parent022aa5fea4fcd347a1657baac68eae8d24fe3b9f
Fix PV CPUID virtualization of XSave

The patch will fix XSave CPUID virtualization for PV guests. The XSave
area size returned by CPUID leaf D is changed dynamically depending on
the XCR0. Tools/libxc only assigns a static value. The fix will adjust
xsave area size during runtime.

Note: This fix is already in HVM cpuid virtualization. And Dom0 is not
affected, either.

Signed-off-by: Shan Haitao <haitao.shan@intel.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c